package com.glsc.ngateway.flowable.log;

import com.glsc.ngateway.common.base.weblog.WebLogService;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;


@Aspect
@Component
public class WebLogAspect {

    @Resource
    private WebLogService webLogService;

    @Pointcut("execution(public * com.glsc.ngateway.flowable.controller..*.*(..))")
    public void webLog() {
    }
    @Around("webLog()")
    public Object aroundAdvice(ProceedingJoinPoint point) throws Throwable {
        return webLogService.aroundAdvice(point, "flowable");
    }

}
